﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example36.aspx.cs" Inherits="Chapter05.Example36" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 5-36 null 和 undefined 值的相等和等同比较</title>
</head>
<body>
    <form>
        <div>
            <script type="text/javascript">
                var firstVal = null;
                var secondVal;

                var equality = firstVal == secondVal;
                var identity = firstVal === secondVal;

                document.writeln("Equality: " + equality);
                document.writeln("Identity :" + identity);
            </script>
        </div>
    </form>
</body>
</html>
